package cn.stylefeng.guns.modular.homeconfig.mapper;

import cn.stylefeng.guns.modular.homeconfig.entity.HomeConfig;
import cn.stylefeng.guns.modular.homeconfig.model.params.HomeConfigParam;
import cn.stylefeng.guns.modular.homeconfig.model.result.HomeConfigResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 首页配置 Mapper 接口
 * </p>
 *
 * @author Dong
 * @since 2023-10-17
 */
public interface HomeConfigMapper extends BaseMapper<HomeConfig> {

    /**
     * 获取列表
     *
     * @author Dong
     * @Date 2023-10-17
     */
    List<HomeConfigResult> customList(@Param("paramCondition") HomeConfigParam paramCondition);

    /**
     * 获取map列表
     *
     * @author Dong
     * @Date 2023-10-17
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") HomeConfigParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author Dong
     * @Date 2023-10-17
     */
    Page<HomeConfigResult> customPageList(@Param("page") Page page, @Param("paramCondition") HomeConfigParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author Dong
     * @Date 2023-10-17
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") HomeConfigParam paramCondition);

}
